<?php

use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;


class AdminMenuTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $insert_data = [
            ['id' => 8, 'parent_id' => 0, 'order' => 8, 'title' => '公司', 'uri' => 'company'],
            ['id' => 9, 'parent_id' => 8, 'order' => 9, 'title' => '公司管理', 'uri' => 'company'],
            ['id' => 10, 'parent_id' => 8, 'order' => 10, 'title' => '管理员管理', 'uri' => 'company_management'],
            ['id' => 11, 'parent_id' => 0, 'order' => 11, 'title' => '消息', 'uri' => 'message'],
            ['id' => 12, 'parent_id' => 0, 'order' => 12, 'title' => '业务管理', 'uri' => 'service'],
            ['id' => 13, 'parent_id' => 12, 'order' => 13, 'title' => '业务类别', 'uri' => 'service'],
            ['id' => 14, 'parent_id' => 12, 'order' => 14, 'title' => '业务类型', 'uri' => 'service_type'],
            ['id' => 15, 'parent_id' => 12, 'order' => 15, 'title' => '开放城市', 'uri' => 'service_city'],
            ['id' => 16, 'parent_id' => 0, 'order' => 16, 'title' => '派单管理', 'uri' => ''],
            ['id' => 17, 'parent_id' => 16, 'order' => 17, 'title' => '抢单模式', 'uri' => 'sendorder_pattern'],
            ['id' => 18, 'parent_id' => 0, 'order' => 18, 'title' => '汽车管理', 'uri' => ''],
            ['id' => 19, 'parent_id' => 18, 'order' => 19, 'title' => '品牌', 'uri' => 'car_brand'],
            ['id' => 20, 'parent_id' => 0, 'order' => 20, 'title' => '营销管理', 'uri' => ''],
            ['id' => 21, 'parent_id' => 20, 'order' => 21, 'title' => '优惠券', 'uri' => 'market_coupon'],
            ['id' => 22, 'parent_id' => 20, 'order' => 22, 'title' => '活动管理', 'uri' => 'market_activity'],
            ['id' => 23, 'parent_id' => 0, 'order' => 23, 'title' => '版本管理', 'uri' => 'version'],
            ['id' => 24, 'parent_id' => 0, 'order' => 24, 'title' => '广告管理', 'uri' => 'banner'],

        ];
        DB::table('admin_menu')->insert($insert_data);

    }
}
